package com.item.audrey_hepburn.controller.db2;

import com.item.audrey_hepburn.entity.db2.ResultMap;
import com.item.audrey_hepburn.entity.db2.User;
import com.item.audrey_hepburn.mapper.db2.UserMapper;
import org.apache.ibatis.annotations.Mapper;
import org.hibernate.validator.constraints.URL;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * _______                             __________
 * \      \   _______  __ ___________  \______   \__ __  ____
 * /   |   \_/ __ \  \/ // __ \_  __ \  |    |  _/  |  \/ ___\
 * /    |    \  ___/\   /\  ___/|  | \/  |    |   \  |  / /_/  >
 * \____|__  /\___  >\_/  \___  >__|     |______  /____/\___  /
 * \/     \/          \/                \/     /_____/
 *
 * @Auther: wangdong
 * @Description: TODO
 * @Date: 2019/4/26 13:59
 * @Version 1.0
 */

@RestController
@RequestMapping("/user")
public class UserController{
    private ResultMap resultMap= ResultMap.getResultMap();

    @RequestMapping(value = "/getMessage", method = RequestMethod.GET)
    public ResultMap getMessage() {
        resultMap.success();
        resultMap.setMessage("您拥有用户权限，可以获得该接口的信息！");
        return resultMap;
    }
}